/**
 * 
 */
package com.google.code.cisx.gwt.client.components.login;

import com.google.code.cisx.gwt.client.event.TypedEvent;
import com.google.code.cisx.gwt.client.session.EventType;

/**
 * Types of Login events classified here.
 * 
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: LoginEvent.java 266 2009-01-21 06:38:36Z rahul.thakur.xdev $
 */
public class LoginEvent extends TypedEvent {

  public enum LoginEventType implements EventType {
    LOGIN("Login"), LOGOUT("Logout"), TIMEOUT("Timeout");

    private String type;

    LoginEventType(String type) {
      this.type = type;
    }

    // @Override
    public String asString() {
      return this.type;
    }

  }

  /**
   * @param source
   * @param type
   */
  public LoginEvent(Object source, EventType type) {
    super(source, type);
  }

}
